package com.f21.f21assessoria.model.modalidade;

import java.io.Serializable;

import javax.persistence.Embeddable;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.f21.f21assessoria.model.cadastro.Usuario;

@Embeddable
public class TurmaAlunoPK implements Serializable {
	
	
	private static final long serialVersionUID = 1L;
	@ManyToOne(fetch=FetchType.EAGER)
	@JoinColumn(name="aluno_id" )
	private Usuario aluno;
	@ManyToOne(fetch=FetchType.EAGER)
	@JoinColumn(name="turma_id" )
	private Turma turma;
	
	
	public Usuario getAluno() {
		return aluno;
	}
	public Turma getTurma() {
		return turma;
	}
	public void setAluno(Usuario aluno) {
		this.aluno = aluno;
	}
	public void setTurma(Turma turma) {
		this.turma = turma;
	}
}
